﻿using System;

namespace 小说爬取
{
    /// <summary>
    /// https://www.37zw.net/3/3531/
    /// </summary>
    public class Zw37 : HtmlParse
    {
        /// <summary>
        /// 网站小说名称CSS路径
        /// </summary>
        private static NameSelector NameSelector { get; }

        /// <summary>
        /// 章节列表 CSS选择器
        /// </summary>
        private static ChapterSelector ChapterSelector { get; }

        /// <summary>
        /// 小说章节内容 选择器
        /// </summary>
        private static string TextSelector { get; }

        /// <summary>
        /// 广告过滤
        /// </summary>
        private static string Filtration { get; }

        static Zw37()
        {
            NameSelector = new NameSelector("div[id=info]>h1");
            ChapterSelector = new ChapterSelector("dd>a[href]", UriHelper.Join);
            TextSelector = "div[id=content]";
            Filtration = @"\[三七中文[\S\s]{1,50}com”";
        }

        public Zw37(Uri uri) : base(uri, NameSelector, ChapterSelector, TextSelector, Filtration)
        {
        }
    }
}